package com.lancer.cloud.common.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author caijinbang
 * @date 2019-06-16 14:27
 */
@Configuration
@MapperScan(
    {"com.lancer.cloud.generator.mapper", "com.lancer.cloud.user.mapper"}
    )
public class MybatisPlusConfiguration {


    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
